class Topic < ActiveRecord::Base
  belongs_to :forum
  belongs_to :user
  has_many :replies

  def last_reply
    replies.last
  end
end
